package com.gw.smscheck.controller.business.bigscreen;

import com.gw.smscheck.entity.business.focuscrowd.FocusCrowd;
import com.gw.smscheck.service.business.focuscrowd.FocusCrowdService;
import com.gw.smscheck.util.ResultObj;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: JunYaoWang
 * @create: 2018-11-05 16:06
 **/
@Api(description="【大屏数据接口】")
@Controller
@RequestMapping("/bigScreenController")
public class BigScreenController {

    @Autowired
    private FocusCrowdService focusCrowdService;

    /**
     * 重点人数统计
     * @param
     * @return
     */
    @RequestMapping(value = "/focusCrowdCount", method = { RequestMethod.POST})
    @ResponseBody
    @ApiOperation(value="重点人数统计", notes="重点人数统计")
    public String focusCrowdCount(){
        return ResultObj.successResultObj(focusCrowdService.focusCrowdCount());
    }

    /**
     * 群体分布占比
     * @param
     * @return
     */
    @RequestMapping(value = "/typeDistributed", method = { RequestMethod.POST})
    @ResponseBody
    @ApiOperation(value="群体分布占比", notes="群体分布占比")
    public String typeDistributed(){
        return ResultObj.successResultObj(focusCrowdService.typeDistributed());
    }

    /**
     * 重点人员关注时间分布
     * @return
     */
    @RequestMapping(value = "/attentionTimeDistributed", method = { RequestMethod.POST})
    @ResponseBody
    @ApiOperation(value="重点人员关注时间分布", notes="重点人员关注时间分布")
    public String attentionTimeDistributed(){
        return ResultObj.successResultObj(focusCrowdService.attentionTimeDistributed());
    }



}
